@extends('shop::layouts.master')
@section('title')
    操作日志列表
@endsection
@section('tab')

    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-body ">
                        <a class="layui-btn" onclick="location.reload()">
                            <i class="layui-icon layui-icon-refresh"></i>
                        </a>
                    </div>
                    <div class="layui-card-body layui_overflow_y">

                        <table class="layui-table layui-form">
                            <thead>
                            <tr>
                                <th>序号</th>
                                <th>请求类型</th>
                                <th>用户名</th>
                                <th>请求IP</th>
                                <th>请求路由</th>
                               {{-- <th>请求方法</th>
                                <th>请求地址</th>
                                <th>请求控制器</th>
                                <th>更新时间</th>--}}
                                <th>创建时间</th>

                            </thead>
                            <tbody>
                            @foreach($data as $key=>$value)
                                <tr>
                                    <td>{{$key+1}}</td>
                                    <td>{{$value['method']}}</td>
                                    <td>{{$value['username']}}</td>
                                    <td>{{$value['ip']}}</td>
                                    <td>{{$value['route']}}</td>
                                    {{--<td>{{$value['actionmethod']}}</td>
                                    <td>{{$value['url']}}</td>
                                    <td>{{$value['actinname']}}</td>
                                    <td>{{$value['updated_at']}}</td>--}}
                                    <td>{{$value['created_at']}}</td>

                                </tr>

                            @endforeach
                            @if($page_data['total'] == 0)
                                <tr><td colspan="66" style="text-align: center">暂无数据</td></tr>
                            @endif
                            </tbody>
                        </table>
                    </div>
                    <div class="layui-card-body ">
                        <div class="page">
                            {{$page_link}}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection

@section('tab_js')
    <script>
        layui.use(['form'], function(){

        });
    </script>
@endsection




